<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.bluesky.dreamer.entity.LoginMessage"%>
<%
String path = request.getContextPath();
LoginMessage login=(LoginMessage)request.getSession().getAttribute("loginsession");
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="../../nresources/default/css/portalet.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path %>/common/page/js/jquery.js"></script>
<SCRIPT LANGUAGE="JavaScript"> 
	function messSave(){
		var messType=$("#messTypeId").val();
		var messTitle=$("#messTitleId").val();
		var messContent=$("#messContentId").val();
		if(messType==''){
			alert("请选择类别!");
			$("#messTypeId").focus();
			return false;
		}else if(messTitle==''){
			alert("请添加标题!");
			$("#messTitleId").focus();
			return false;
		}else if(messContent==''){
			alert("请填写内容!");
			$("#messContentId").focus();
			return false;
		}
		$("#messformId").submit();
	}
</SCRIPT>
</head>
<body>
<!-- 表单 Start -->
<DIV id="Operation_Table">
	<div class="title">
		<div class="titleleft">咨询添加</div>
		<!-- 表单title -->
	</div>
	<!-- 表单title -->
	<!-- 表单内容 Start-->
	<div id="Info_table">
		<form action="messagemanage!save.do" name="messform" id="messformId" method="post">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<th>咨询类别:</th>
					<td>
					  <select name="messType" id="messTypeId">
	                    <option value="0">普通报告</option>
	                  </select>
	               </td>
				</tr>
				<tr>
					<th width="120">咨询标题：</th>
					<td colspan="3" >
				    <input type="text" name="messTitle" id="messTitleId" width="70%">
				    <input type="hidden" name="createUser" value="<%=login.getShowName() %>"></td>
			    </tr>
				<tr>
					<th>咨询内容：</th>
					<td colspan="3"><textarea name="messContent" id="messContentId" cols="45" rows="5"></textarea>
				    (限定字数：4000)</td>
	            </tr>
			</table>
		</form>
	</div>
	<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
		<!-- 按扭背景 start -->
		<tr>
		  <td width="30" align="center" id="footer">
		  	<input name="confirmButton" id="confirmButton" type="button" class="buttonStyle" value="提交" onclick="messSave()">
		  </td>
		</tr>
		<!-- 按扭背景 end -->
	</table>
	<!-- 表单内容 End -->
</DIV>
</body>
</html>
